package com.dc.designPattern._20_state.impl;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Description: 状态模式_具体状态_奖品领完状态
 * @author: gdc
 * @date: 2021/6/9
 * @version 1.0
 */
@Data
@AllArgsConstructor
public class DispenseOutState implements State {

    private RaffleActivity activity;

    @Override
    public void deductMoney() {
        System.out.println("奖品发放完了，请下次参加");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品发送完了，请下次再参加");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("奖品发送完了，请下次参加");
    }
}
